package moddb.resource;

//import java.sql.*;
import moddb.schema.*;
import javax.ws.rs.*;
import javax.ws.rs.core.*;
import javax.ws.rs.core.Response.*;
import moddb.Middletier;

@Path("/files")
public class FilesResource {
  
  /*@GET
  @Produces("text/xml")
  public Files get() {
    Files files = new Files();
    
    return files;
  }
  */
  
  /*@GET
  @Produces("text/xml")
  @Path("/{query}")
  public Files get(@PathParam("query") String query) {
    
    // SELECT * from files
    
    System.err.println("q: " + query);
    
    Files files = new Files();
    
    return files;
  }
  
  @GET
  @Produces("text/xml")
  @Path("/{query}/hitsfrom/{start}/hitslength/{length}")
  public Files get(@PathParam("query") String query, @PathParam("start") String hitstart, @PathParam("length") String length) {
    
    // SELECT * from files
    
    //System.err.println("q: " + query);
    //System.err.println("s: " + hitstart);
    
    Files files = new Files(Middletier.searchFiles(query, null));
    
    //Files files = new Files();
    
    return files;
  }*/
  
  
}
